import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SQuartermaster
    
    export  class SQuartermaster extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SQuartermaster();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.mySword);
            arg1.writeInt(this.myArmor);
            arg1.writeInt(this.campSword);
            arg1.writeInt(this.campArmor);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.mySword = arg1.readInt();
            this.myArmor = arg1.readInt();
            this.campSword = arg1.readInt();
            this.campArmor = arg1.readInt();
            return;
        }

        public /* const */_type: int=93;

        public /* var */mySword: int;

        public /* var */myArmor: int;

        public /* var */campSword: int;

        public /* var */campArmor: int;

        public static /* var */_regist: SQuartermaster;
    }

            SQuartermaster._regist = new SQuartermaster(true);
        